home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.5 Applications 1998 June
/
SGI IRIX 6.5 Applications 1998 June.iso
/
dist
/
license_eoe.idb
/
usr
/
bin
/
licensemgr.setup.z
/
licensemgr.setup
Wrap
Text File
|
1998-05-04
|
2KB
|
77 lines
#!/sbin/sh
#
# Update netscape config files for LicenseManager
#
# This script installs both the old mime type, enterlicense, and the
# new mime type licensemgr to support 5.3 users who may be expecting
# the enterlicense type, and >5.3 users who are expecting
# the licensemgr type.
#
# If the host already contains the updates, this script does nothing.
#
MAILCAP=/usr/local/lib/netscape/mailcap
MIMETYPE=/usr/local/lib/netscape/mime.types
#
# If the netscape files do not exists, warn the user and write the information
# to the files.
#
if test ! -f $MAILCAP
then
echo
echo "The Netscape Web Browser is not installed. Please add the following"
echo "information to the mailcap file for your Web browser."
echo ' application/x-enterlicense; /usr/etc/enterlicense %s; \'
echo ' application/x-licensemgr; /usr/etc/LicenseManager %s; \'
echo ' description="Software License Installation"'
echo
else
if grep "application/x-enterlicense" $MAILCAP >/dev/null
then
true
else
echo 'application/x-enterlicense; /usr/etc/enterlicense %s; \' >> $MAILCAP
echo ' description="Software License Installation"' >> $MAILCAP
fi
if grep "application/x-licensemgr" $MAILCAP >/dev/null
then
true
else
echo 'application/x-licensemgr; /usr/etc/LicenseManager %s; \' >> $MAILCAP
echo ' description="Software License Installation"' >> $MAILCAP
fi
fi
if test ! -f $MIMETYPE
then
echo
echo "The Netscape Web Browser is not installed. Please add the following"
echo "information to the mime.types file for your Web browser."
echo ' type=application/x-enterlicense exts=lic'
echo ' type=application/x-licensemgr exts=licmgr'
echo
else
if grep "application/x-enterlicense" $MIMETYPE >/dev/null
then
true
else
echo 'type=application/x-enterlicense exts=lic' >> $MIMETYPE
fi
if grep "application/x-licensemgr" $MIMETYPE >/dev/null
then
true
else
echo 'type=application/x-licensemgr exts=licmgr' >> $MIMETYPE
fi
fi
exit 0